Skip to main content
No exploitation reportedFix available

CVE-2023-22794

No exploitation reported by the sources we read.

  • Published2023-02-09
  • Fixed in7.0.4.1 · 6.1.7.1 · 6.0.6.1
  • WeaknessCWE-89

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

A vulnerability in ActiveRecord <6.0.6.1, v6.1.7.1 and v7.0.4.1 related to the sanitization of comments. If malicious user input is passed to either the `annotate` query method, the `optimizer_hints` query method, or through the QueryLogs interface which automatically adds annotations, it may be sent to the database withinsufficient sanitization and be able to inject SQL outside of the comment.

Timeline

dates in UTC
  1. 2023-02-0920:15CVE publishedNVD

Versions per branch

NVD · OSV
Activerecord project activerecord
BranchAffectedFixed in
7.0≥ 7.0.0, < 7.0.4.17.0.4.1
6.1≥ 6.1.0, < 6.1.7.16.1.7.1
6.0≥ 6.0.0, < 6.0.6.16.0.6.1

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • foremanRed Hat:satellite:6.14::el8all versions · fixed in 0:3.7.0.9-1.el8satand 13 other packages
  • foremanRed Hat:satellite_utils:6.14::el8all versions · fixed in 0:3.7.0.9-1.el8satand 1 other package
  • foremanRed Hat:satellite_capsule:6.14::el8all versions · fixed in 0:3.7.0.9-1.el8satand 1 other package
  • puppet-agentRed Hat:satellite:6.14::el8all versions · fixed in 0:7.26.0-3.el8sat
  • puppet-agentRed Hat:satellite_capsule:6.14::el8all versions · fixed in 0:7.26.0-3.el8sat
  • puppetserverRed Hat:satellite:6.14::el8all versions · fixed in 0:7.11.0-1.el8sat
  • puppetserverRed Hat:satellite_capsule:6.14::el8all versions · fixed in 0:7.11.0-1.el8sat
  • python-djangoRed Hat:satellite:6.14::el8all versions · fixed in 0:3.2.21-1.el8pcand 1 other package

35 more package ranges on OSV.dev

Vendor advisories

  • CVE-2023-22794 Red Hat Product Security2 products fixed

    rubygem-activerecord: SQL Injection

  • RHSA-2023:6818 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Satellite 6.14 security and bug fix update

Full record on NVD

Fix

  1. Update Activerecord project activerecord to 7.0.4.1 · 6.1.7.1 · 6.0.6.1
  2. Vendor fix Red Hat Product Security RHSA-2023:6818 · 2 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For detailed instructions how to apply this update, refer to: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.14/html/upgrading_red_hat_satellite_to_6.14/index

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • NVDCVSS 3.18.8read 2026-10-24
  • CNAweakness (CWE)CWE-89known since 2026-10-24
  • NVDweakness (CWE)CWE-89read 2026-10-24
  • FIRST EPSSEPSS score2.2 %2026-12-04
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHigh2023-01-18

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
2023-02-09
Last modified
2026-10-23
NVD status
Modified
GitHub advisory
GHSA-hq7p-j377-6v63

Frequently asked questions

What is CVE-2023-22794?

A vulnerability in ActiveRecord <6.0.6.1, v6.1.7.1 and v7.0.4.1 related to the sanitization of comments. If malicious user input is passed to either the `annotate` query method, the `optimizer_hints` query method, or through the QueryLogs interface which automatically adds annotations, it may be sent to the database withinsufficient sanitization and be able to inject SQL outside of the comment.

Is CVE-2023-22794 actively exploited?

Active exploitation of CVE-2023-22794 has not been confirmed. Its EPSS score was 2.2% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2023-22794?

CVE-2023-22794 has a CVSS v3 base score of 8.8 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Running activerecord? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record