Skip to main content
CVE-2025-47907VulnerabilityPublished Updated

CVE-2025-47907: Go standard library database/sql · Race Condition

Affects Go standard library database/sqlSource CVE Database V5

0

Not known to be exploited · CVSS 7.0 High.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
7.0High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 32% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 7 Aug 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Affected software

ProductAffectedFixed in
Go standard library database/sqlAffected
  • =0
  • =1.24.0
Fixed in–

AI-suggested

1. Monitor official Go project channels for patches addressing CVE-2025-47907 and apply updates promptly once available. 2. Until patches are released, implement strict concurrency controls in application code to avoid cancelling queries during Scan operations or serialize query execution to prevent parallel query interference. 3. Review and refactor database access patterns to minimize context cancellations during active Scans. 4. Employ additional application-level validation to detect and handle unexpected query results or errors gracefully. 5. Use runtime monitoring and logging to detect anomalies in query results that may indicate exploitation attempts. 6. Conduct code audits focusing on concurrent database operations and context cancellation usage. 7. Educate developers on safe use of context cancellation and concurrency in Go database interactions. 8. Consider isolating critical database queries in separate processes or services to reduce shared resource contention. 9. Engage in threat hunting to identify any early exploitation signs within the network. 10. Maintain strong access controls and network segmentation to limit exposure of vulnerable services.

Description

Cancelling a query (e.g.by cancelling the context passed to one of the query methods) during a call to the Scan method of the returned Rows can result in unexpected results if other queries are being made in parallel. This can result in a race condition that may overwrite the expected results with those of another query, causing the call to Scan to return either unexpected results from the other query or an error.

References

Community reviews

Loading reviews…