Jump to content

A Vulnerability in 7-Zip Could Allow for Arbitrary Code Execution


Gordon Dry

Recommended Posts

https://www.cisecurity.org/advisory/a-vulnerability-in-7-zip-could-allow-for-arbitrary-code-execution_2018-049/

An updated version 18.0.5 is already released.

Quote

MS-ISAC ADVISORY NUMBER:

2018-049

DATE(S) ISSUED:

05/01/2018

OVERVIEW:

A vulnerability has been discovered in 7-Zip, which could allow for arbitrary code execution. 7-Zip is a free and open-source file archiver. Successful exploitation of this vulnerability could allow for arbitrary code execution. Depending on the privileges associated with the user, an attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. Users whose accounts are configured to have fewer user rights on the system could be less impacted than those who operate with administrative user rights.

THREAT INTELLIGENCE:

 

There are currently no reports of this vulnerability being exploited in the wild.

 

SYSTEMS AFFECTED:

  • 7-Zip versions prior to 18.05

RISK:

Government:
  • Large and medium government entities: HIGH
  • Small government entities: HIGH
Businesses:
  • Large and medium business entities: HIGH
  • Small business entities: HIGH
Home Users:
HIGH

TECHNICAL SUMMARY:

 

A vulnerability has been discovered in 7-Zip, which could allow for arbitrary code execution. The NArchive::NRar::CHandler::Extract method in CPP/7zip/Archive/Rar/RarHandler.cpp performs decoding of archive data using a largely uninitialized state. This state together with a lack of address space layout randomization (ASLR) on the main executables (7zFM.exe, 7zG.exe, 7z.exe) can cause memory corruptions that lead to arbitrary code execution. (CVE-2018-10115)

Successful exploitation of this vulnerability could allow for arbitrary code execution. Depending on the privileges associated with the user, an attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. Users whose accounts are configured to have fewer user rights on the system could be less impacted than those who operate with administrative user rights.

 

RECOMENDATIONS:

 

We recommend the following actions be taken:

  • Apply appropriate updates provided by 7-Zip to vulnerable systems, immediately after appropriate testing.
  • Run all software as a non-privileged user (one without administrative privileges) to diminish the effects of a successful attack.
  • Apply the Principle of Least Privilege to all systems and services.

 

REFERENCES:

 

Link to comment
Share on other sites

nobody really uses 7zip for distribution of files so its not like its going to be a common attack vector. but its nice to see security holes fixed rather than neglected.

Link to comment
Share on other sites

28 minutes ago, Nuke said:

nobody really uses 7zip for distribution of files

Uses-uses. (Not me, not often, but I've seen that a lot of times.)
Also, a self-extracting 7zip archive is a way to deliver something to... hm... an alternatively experienced user.

P.S.
Using 7zip since dino time, currently am using more and more often that despicable old zip.
Never thought I'd fall so low. Always used arj, rar, ain, uc2, 7-zip, but never zip. And now I do.

Just because of internet.
In good old times I was compressing programs, data, docs, texts, so on.
And now I save almost only jpg, mp4, installers, other already compressed stuff. 0% compression for both 7-zip and zip, but zip opens the archives faster.

Link to comment
Share on other sites

15 hours ago, kerbiloid said:

Uses-uses. (Not me, not often, but I've seen that a lot of times.)
Also, a self-extracting 7zip archive is a way to deliver something to... hm... an alternatively experienced user.

P.S.
Using 7zip since dino time, currently am using more and more often that despicable old zip.
Never thought I'd fall so low. Always used arj, rar, ain, uc2, 7-zip, but never zip. And now I do.

Just because of internet.
In good old times I was compressing programs, data, docs, texts, so on.
And now I save almost only jpg, mp4, installers, other already compressed stuff. 0% compression for both 7-zip and zip, but zip opens the archives faster.

i should have said nobody uses it for file distribution. i do use it for archiving files in long term storage. 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...