Home / Apache Software Foundation / Apache AGE / CVE-2022-45786
CVE-2022-45786: is it exploited, and which versions of Apache Software Foundation Apache AGE are affected and fixed?
CVE-2022-45786 is a SQL injection vulnerability in Apache Software Foundation Apache AGE. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: github.com/apache/age/drivers/golang before 1.1.1 and apache-age-python before 0.0.5 (GitHub advisory GHSA-6p5q-h963-pwwf). Fixed in 1.1.1 and 0.0.5 (GitHub advisory GHSA-6p5q-h963-pwwf). Severity: High (8.1, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:13 UTC and NVD November 19, 2026, 07:41 UTC.
What is CVE-2022-45786?
Apache AGE: Python and Golang drivers allow data manipulation and exposure due to SQL injection
There are issues with the AGE drivers for Golang and Python that enable SQL injections to occur. This impacts AGE for PostgreSQL 11 & AGE for PostgreSQL 12, all versions up-to-and-including 1.1.0, when using those drivers. The fix is to update to the latest Golang and Python drivers in addition to the latest version of AGE that is used for PostgreSQL 11 orĀ PostgreSQL 12. The update of AGE will add a new function to enable parameterization of the cypher() function, which, in conjunction with the driver updates, will resolve this issue. Background (for those who want more information): After thoroughly researching this issue, we found that due to the nature of the cypher() function, it was not easy to parameterize the values passed into it. This enabled SQL injections, if the developer of the driver wasn't careful. The developer of the Golang and Pyton drivers didn't fully utilize parameterization, likely because of this, thus enabling SQL injections. The obvious fix to this issue is to use parameterization in the drivers for all PG SQL queries. However, parameterizing all PG queries is complicated by the fact that the cypher() function call itself cannot be parameterized directly, as it isn't a real function. At least, not the parameters that would take the graph name and cypher query. The reason the cypher() function cannot have those values parameterized is because the function is a placeholder and never actually runs. The cypher() function node, created by PG in the query tree, is transformed and replaced with a query tree for the actual cypher query during the analyze phase. The problem is that parameters - that would be passed in and that the cypher() function transform needs to be resolved - are only resolved in the execution phase, which is much later. Since the transform of the cypher() function needs to know the graph name and cypher query prior to execution, they can't be passed as parameters. The fix that we are testing right now, and are proposing to use, is to create a function that will be called prior to the execution of the cypher() function transform. This new function will allow values to be passed as parameters for the graph name and cypher query. As this command will be executed prior to the cypher() function transform, its values will be resolved. These values can then be cached for the immediately following cypher() function transform to use. As added features, the cached values will store the calling session's pid, for validation. And, the cypher() function transform will clear this cached information after function invocation, regardless of whether it was used. This method will allow the parameterizing of the cypher() function indirectly and provide a way to lock out SQL injection attacks.
From the CVE record by apache, last updated March 26, 2025, 13:58 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Apache Software Foundation | Apache AGE | from Apache AGE for PostgreSQL 12 through 1.1.0 from Apache AGE for PostgreSQL 11 through 1.1.0 |
As the CVE record by apache states it, last updated March 26, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Go | github.com/apache/age/drivers/golang | < 1.1.1 | 1.1.1 | GHSA-6p5q-h963-pwwf |
| PyPI | apache-age-python | < 0.0.5 | 0.0.5 | GHSA-6p5q-h963-pwwf |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated November 21, 2025. Summary: Apache AGE: Python and Golang drivers allow data manipulation and exposure due to SQL injection.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apache | age | through 1.1.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 05:10 UTC.
How severe is CVE-2022-45786?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | CISA-ADP |
| High 8.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-45786 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, March 26, 2025)
- EPSS
- 1.00% probability of exploitation activity in the next 30 days, percentile 63.8 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
Where are the vendor advisories and references?
- https://lists.apache.org/thread/of8x0gt5d2vfrm5ksxw55bwn2849ck1w vendor-advisory
When was it published, and where is the official record?
- Reserved
- November 22, 2022
- Published
- February 4, 2023, 20:40 UTC
- CVE record updated
- March 26, 2025, 13:58 UTC by apache
- NVD
- Modified, last modified June 17, 2026, 05:10 UTC
- Last checked
- CVE list November 19, 2026, 07:13 UTC; NVD November 19, 2026, 07:41 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
Questions about CVE-2022-45786
Is CVE-2022-45786 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 1.00% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Apache Software Foundation Apache AGE are affected by CVE-2022-45786?
github.com/apache/age/drivers/golang before 1.1.1 and apache-age-python before 0.0.5, per the GitHub advisory GHSA-6p5q-h963-pwwf. The tables above give every range the sources list.
Which version fixes CVE-2022-45786?
1.1.1 and 0.0.5, per the GitHub advisory GHSA-6p5q-h963-pwwf. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-45786?
High (8.1, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2022-45786?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.