CyberSecBulletin
CVE-2023-1297NVD status: Modified

Consul: Premature Release of Resource During Expected Lifetime

CVE-2023-1297 is a high-severity premature release of resource during expected lifetime vulnerability in Consul from HashiCorp, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected Consul versions: 1.14.0 through 1.14.5; 1.15.0 through 1.15.3. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 0.77% chance of exploitation within 30 days, higher than 56% of scored CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Check which version of Consul you run against the affected versions below, and install the vendor's latest release.
  2. Read the advisory on discuss.hashicorp.com for workarounds and exact fixed builds.
  3. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
HashiCorpConsul1.14.0 through 1.14.5; 1.15.0 through 1.15.3Not stated
HashiCorpConsul Enterprise1.14.0 through 1.14.5; 1.15.0 through 1.15.3Not stated

Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
NetworkCan be exploited remotely over a network, including the internet.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
NoneNo account or login is needed.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
NoneNo data is disclosed.
Integrity
NoneNothing can be modified.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 3.14.9MediumCNA (hashicorp.com)
CVSS 3.17.5HighNVD

Official description

Consul and Consul Enterprise's cluster peering implementation contained a flaw whereby a peer cluster with service of the same name as a local service could corrupt Consul state, resulting in denial of service. This vulnerability was resolved in Consul 1.14.5, and 1.15.3

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Premature Release of Resource During Expected Lifetime

The product releases a resource that is still intended to be used by itself or another actor.

More Premature Release of Resource During Expected Lifetime vulnerabilities (CWE-826)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: partial).
  3. Record last changed materially (score, affected products, status or references).

References

Other vulnerabilities in Consul

All Consul vulnerabilities

Spotted an error? Tell us.