CVE-2022-28327: Integer Overflow

Published Apr 12, 2022
·
Updated

An integer overflow flaw was found in Golang's crypto/elliptic library. This flaw allows an attacker to use a crafted scaler input longer than 32 bytes, causing P256().ScalarMult or P256().ScalarBaseMult to panic, leading to a loss of availability.

Other sources

crypto/elliptic: tolerate all oversized scalars in generic P-256

A crafted scalar input longer than 32 bytes can cause P256().ScalarMult or P256().ScalarBaseMult to panic. Indirect uses through crypto/ecdsa and crypto/tls are unaffected. amd64, arm64, ppc64le, and s390x are unaffected.

This was discovered thanks to a Project Wycheproof test vector.

This is CVE-2022-28327 and https://go.dev/issue/52075.

— Red Hat

Golang Go is vulnerable to a denial of service, caused by improper input validaiton by the generic P-256 feature in crypto/elliptic. By sending a specially-crafted request with long scalar input, a remote attacker could exploit this vulnerability to cause a panic on the system.

— IBM

The generic P-256 feature in crypto/elliptic in Go before 1.17.9 and 1.18.x before 1.18.1 allows a panic via long scalar input.

Affected Software

39 affected componentsFixes available
redhat/openshift-serverless-clients<0:1.3.1-4.el8
0:1.3.1-4.el8
redhat/servicemesh<0:2.1.5-1.el8
0:2.1.5-1.el8
redhat/servicemesh-operator<0:2.1.5-1.el8
0:2.1.5-1.el8
redhat/servicemesh-prometheus<0:2.23.0-9.el8
0:2.23.0-9.el8
redhat/servicemesh-ratelimit<0:2.1.5-1.el8
0:2.1.5-1.el8
redhat/go-toolset<1.17-golang-0:1.17.10-1.el7_9
1.17-golang-0:1.17.10-1.el7_9
redhat/golang<0:1.17.12-1.el9_0
0:1.17.12-1.el9_0
redhat/go-toolset<0:1.17.12-1.el9_0
0:1.17.12-1.el9_0
redhat/cri-tools<0:1.23.0-1.1.el8
0:1.23.0-1.1.el8
redhat/cri-o<0:1.23.3-14.rhaos4.10.git6af791c.1.el8
0:1.23.3-14.rhaos4.10.git6af791c.1.el8
redhat/butane<0:0.15.0-1.rhaos4.11.el8
0:0.15.0-1.rhaos4.11.el8
redhat/containernetworking-plugins<0:1.0.1-5.rhaos4.11.el8
0:1.0.1-5.rhaos4.11.el8
redhat/buildah<1:1.23.4-3.rhaos4.11.el8
1:1.23.4-3.rhaos4.11.el8
redhat/podman<2:4.0.2-7.rhaos4.11.el8
2:4.0.2-7.rhaos4.11.el8
redhat/runc<3:1.1.2-2.rhaos4.11.el8
3:1.1.2-2.rhaos4.11.el8
redhat/skopeo<2:1.5.2-4.rhaos4.11.el8
2:1.5.2-4.rhaos4.11.el8
redhat/mcg<0:5.11.0-22.el8
0:5.11.0-22.el8
redhat/skupper-cli<0:1.4.1-2.el8
0:1.4.1-2.el8
redhat/skupper-cli<0:1.4.1-2.el9
0:1.4.1-2.el9
IBM Cloud Pak for Security<=1.10.0.0 - 1.10.11.0
IBM QRadar Suite Software<=1.10.12.0 - 1.10.16.0
Golang Go<1.17.9
Golang Go>=1.18.0<1.18.1
Fedoraproject Extra Packages For Enterprise Linux=7.0
Fedoraproject Extra Packages For Enterprise Linux=8.0
Fedoraproject Fedora=34
Fedoraproject Fedora=35
Fedoraproject Fedora=36
redhat/go<1.17.9
1.17.9
redhat/go<1.18.1
1.18.1
alpine/go>=1.18.0<1.18.1-r0
1.18.1-r0
alpine/go>=1.18.0<1.18.1-r0
1.18.1-r0
alpine/go>=1.18.0<1.18.1-r0
1.18.1-r0
alpine/go>=1.18.0<1.18.1-r0
1.18.1-r0
alpine/go>=1.18.0<1.18.1-r0
1.18.1-r0
alpine/go>=1.18.0<1.18.1-r0
1.18.1-r0
alpine/go>=1.18.0<1.18.1-r0
1.18.1-r0
alpine/go>=1.18.0<1.18.1-r0
1.18.1-r0
alpine/go>=1.18.0<1.18.1-r0
1.18.1-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/openshift-serverless-clients to a version that resolves this vulnerability.

    Fixed in 0:1.3.1-4.el8
  2. Upgrade

    Upgrade redhat/servicemesh to a version that resolves this vulnerability.

    Fixed in 0:2.1.5-1.el8
  3. Upgrade

    Upgrade redhat/servicemesh-operator to a version that resolves this vulnerability.

    Fixed in 0:2.1.5-1.el8
  4. Upgrade

    Upgrade redhat/servicemesh-prometheus to a version that resolves this vulnerability.

    Fixed in 0:2.23.0-9.el8
  5. Upgrade

    Upgrade redhat/servicemesh-ratelimit to a version that resolves this vulnerability.

    Fixed in 0:2.1.5-1.el8
  6. Upgrade

    Upgrade redhat/go-toolset to a version that resolves this vulnerability.

    Fixed in 1.17-golang-0:1.17.10-1.el7_9
  7. Upgrade

    Upgrade redhat/golang to a version that resolves this vulnerability.

    Fixed in 0:1.17.12-1.el9_0
  8. Upgrade

    Upgrade redhat/go-toolset to a version that resolves this vulnerability.

    Fixed in 0:1.17.12-1.el9_0
  9. Upgrade

    Upgrade redhat/cri-tools to a version that resolves this vulnerability.

    Fixed in 0:1.23.0-1.1.el8
  10. Upgrade

    Upgrade redhat/cri-o to a version that resolves this vulnerability.

    Fixed in 0:1.23.3-14.rhaos4.10.git6af791c.1.el8
  11. Upgrade

    Upgrade redhat/butane to a version that resolves this vulnerability.

    Fixed in 0:0.15.0-1.rhaos4.11.el8
  12. Upgrade

    Upgrade redhat/containernetworking-plugins to a version that resolves this vulnerability.

    Fixed in 0:1.0.1-5.rhaos4.11.el8
  13. Upgrade

    Upgrade redhat/buildah to a version that resolves this vulnerability.

    Fixed in 1:1.23.4-3.rhaos4.11.el8
  14. Upgrade

    Upgrade redhat/podman to a version that resolves this vulnerability.

    Fixed in 2:4.0.2-7.rhaos4.11.el8
  15. Upgrade

    Upgrade redhat/runc to a version that resolves this vulnerability.

    Fixed in 3:1.1.2-2.rhaos4.11.el8
  16. Upgrade

    Upgrade redhat/skopeo to a version that resolves this vulnerability.

    Fixed in 2:1.5.2-4.rhaos4.11.el8
  17. Upgrade

    Upgrade redhat/mcg to a version that resolves this vulnerability.

    Fixed in 0:5.11.0-22.el8
  18. Upgrade

    Upgrade redhat/skupper-cli to a version that resolves this vulnerability.

    Fixed in 0:1.4.1-2.el8
  19. Upgrade

    Upgrade redhat/skupper-cli to a version that resolves this vulnerability.

    Fixed in 0:1.4.1-2.el9
  20. Upgrade

    Upgrade redhat/go to a version that resolves this vulnerability.

    Fixed in 1.17.9
  21. Upgrade

    Upgrade redhat/go to a version that resolves this vulnerability.

    Fixed in 1.18.1
  22. Upgrade

    Upgrade alpine/go to a version that resolves this vulnerability.

    Fixed in 1.18.1-r0

Event History

Apr 12, 2022
CVE Published
12:00 AM
Apr 20, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·10:15 AM
DescriptionSeverityAffected Software
Apr 21, 2022
Data Sourced
via Red Hat·10:35 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is CVE-2022-28327?

CVE-2022-28327 is an integer overflow vulnerability in Golang's crypto/elliptic library.

2

How does CVE-2022-28327 impact the affected software?

CVE-2022-28327 allows an attacker to cause P256().ScalarMult or P256().ScalarBaseMult to panic, leading to a loss of availability.

3

What is the severity of CVE-2022-28327?

CVE-2022-28327 has a severity rating of 7.5 (High).

4

How do I fix CVE-2022-28327 in Go?

To fix CVE-2022-28327 in Go, upgrade to version 1.17.9 or 1.18.1.

5

Where can I find more information about CVE-2022-28327?

More information about CVE-2022-28327 can be found at the following links: - [Red Hat Security Advisory](https://access.redhat.com/security/cve/CVE-2022-28327) - [Go Issue Tracker](https://go.dev/issue/52075) - [Go Source Code](https://go-review.googlesource.com/c/go/+/397135/)

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