CVE-2022-24912: Github.com/runatlantis/atlantis Atlantis Events Vulnerable To Timing Vulnerability

HIGH
Advisory Identifier: GHSA-jxqv-jcvh-7gr4
CVSS 7.5
CWE-203 CWE-208
Published
Advisory Summary

CVE-2022-24912 is a HIGH (CVSS 7.5) atlantis events vulnerable to timing vulnerability (CWE-203: Observable Discrepancy) affecting Github.com/runatlantis/atlantis libraries in the Go ecosystem. The issue involves atlantis events vulnerable to timing attack. Remediation is available by upgrading affected packages to version 0.19.7.

CVE-2022-24912 at a Glance

CVE Identifier CVE-2022-24912
GHSA Identifier GHSA-jxqv-jcvh-7gr4
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-203: Observable Discrepancy
Affected Product Github.com/runatlantis/atlantis
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2022-24912

To remediate this vulnerability, upgrade all affected Github.com/runatlantis/atlantis dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/runatlantis/atlantis fixed: 0.19.7
Upgrade github.com/runatlantis/atlantis to 0.19.7
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/runatlantis/atlantis

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-24912, inspect your project dependencies for Github.com/runatlantis/atlantis:

inspect dependencies for github.com/runatlantis/atlantis

Analyze the terminal output to locate any version of Github.com/runatlantis/atlantis in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.19.7), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-203: Observable Discrepancy, where the product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor. In Github.com/runatlantis/atlantis, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

The package github.com/runatlantis/atlantis/server/controllers/events before 0.19.7 is vulnerable to Timing Attack in the webhook event validator code, which does not use a constant-time comparison function to validate the webhook secret. It can allow an attacker to recover this secret as an attacker and then forge webhook events.

CVE-2022-24912 Affected Github.com/runatlantis/atlantis Versions

1 component(s)
Fixed Versions:
0.19.7
Product / Package Ecosystem Affected Versions Fixed Version
github.com/runatlantis/atlantis
Go
< 0.19.7
0.19.7

References

Frequently Asked Questions

What is CVE-2022-24912?
CVE-2022-24912 is a security vulnerability in Github.com/runatlantis/atlantis involving Atlantis Events vulnerable to Timing Attack under CWE-203: Observable Discrepancy.
Which Github.com/runatlantis/atlantis versions are affected?
Affected versions include releases prior to 0.19.7 across affected packages: github.com/runatlantis/atlantis.
What version fixes CVE-2022-24912?
Upgrading to 0.19.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/runatlantis/atlantis affected?
Yes, github.com/runatlantis/atlantis is affected in releases prior to 0.19.7. Upgrade your dependency to 0.19.7 or later.
What is the CVSS score of CVE-2022-24912?
CVE-2022-24912 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2022-24912?
CVE-2022-24912 is classified under CWE-203: Observable Discrepancy (The product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor.).
How can I check Go dependencies for CVE-2022-24912?
Run the dependency tree command: 'inspect dependencies for github.com/runatlantis/atlantis'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jxqv-jcvh-7gr4",
  "modified" : "2024-05-20T21:28:30Z",
  "published" : "2022-07-30T00:00:41Z",
  "aliases" : [ "CVE-2022-24912" ],
  "summary" : "Atlantis Events vulnerable to Timing Attack",
  "details" : "The package github.com/runatlantis/atlantis/server/controllers/events before 0.19.7 is vulnerable to Timing Attack in the webhook event validator code, which does not use a constant-time comparison function to validate the webhook secret. It can allow an attacker to recover this secret as an attacker and then forge webhook events.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/runatlantis/atlantis"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.19.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-24912"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/runatlantis/atlantis/issues/2391"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/runatlantis/atlantis/pull/2392"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/runatlantis/atlantis/commit/48870911974adddaa4c99c8089e79b7d787fa820"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/runatlantis/atlantis"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2022-0534"
  }, {
    "type" : "WEB",
    "url" : "https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMRUNATLANTISATLANTISSERVERCONTROLLERSEVENTS-2950851"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-203", "CWE-208" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-08-06T05:21:43Z",
    "nvd_published_at" : "2022-07-29T10:15:00Z"
  }
}