CVE-2025-47907: Incorrect results returned from Rows.Scan in database/sql

Published Aug 6, 2025
·
Updated

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.

Other sources

Incorrect results returned from Rows.Scan in database/sql

Microsoft

Affected Software

9 affected componentsFixes available
Google Go<1.24.6, <1.23.12
Golang Go<1.23.12
Golang Go>=1.24.0<1.24.6
Microsoft cbl2 golang 1.18.8-8
Microsoft cbl2 golang 1.22.7-4
Microsoft azl3 golang 1.23.11-1
Microsoft azl3 golang 1.24.5-1
Microsoft cbl2 golang 1.22.7-5
IBM Concert Software<=1.0.0-2.2.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.24.6
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.23.12

Event History

Aug 7, 2025
CVE Published
via MITRE·03:25 PM
Data Sourced
via MITRE·03:25 PM
DescriptionWeakness
Data Sourced
via Red Hat·04:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Sep 4, 2025
Data Sourced
via Microsoft·05:18 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·05:18 AM
Affected Software
Updated
via Microsoft·05:18 AM
DescriptionSeverity
Updated
via Microsoft·05:18 AM
Description
Apr 6, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-47907?

CVE-2025-47907 is classified as a moderate severity vulnerability due to the potential for race conditions affecting query results.

2

What software versions are affected by CVE-2025-47907?

CVE-2025-47907 affects Google Go versions prior to 1.24.6 and 1.23.12.

3

How can I fix CVE-2025-47907?

To fix CVE-2025-47907, upgrade to Google Go version 1.24.6 or higher, or 1.23.12 or higher.

4

What is the main issue described in CVE-2025-47907?

The main issue in CVE-2025-47907 involves a race condition resulting from cancelling a query during its execution, leading to unexpected behavior.

5

Are multiple queries impacted simultaneously by CVE-2025-47907?

Yes, CVE-2025-47907 can lead to unexpected results when multiple queries are executed in parallel while one is cancelled.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203