大网数据广告活动
服务器运维问答

Apache upgrade strategy

· 52CE 我爱测

I'm on CentOS 6.5 and Apache 2.2.15. I wanted my httpd to be up to date so I did: yum update httpd After that it is still version 2.2.15, but latest version is 2.2.22. I also see security updates between 2.2.15 and 2.2.22. I woul…

问题原文

原帖链接 · rumburak · CC BY-SA 3.0

I'm on CentOS 6.5 and Apache 2.2.15. I wanted my httpd to be up to date so I did:

yum update httpd

After that it is still version 2.2.15, but latest version is 2.2.22. I also see security updates between 2.2.15 and 2.2.22.

I would like to know if 2.2.15 is secure ? Should I force update to latest version or the one I have is good enough. I'm looking for achieving maximum security, so I'm guessing that it should be the latest version, but I'm new to this, so just wanted to confirm this.

已采纳解答

原帖链接 · MadHatter · CC BY-SA 4.0

You have to understand Red Hat's packaging and patching policy.

Red Hat pick the version of any given tool they'll use when they launch a version of RHEL. For RHEL 6, this included Apache 2.2.15, the 2.6.32 kernel, php 5.3.3, and so on. For the rest of the life of RHEL6, these will not be upgraded; Red Hat will instead backport any necessary patches (and occasionally, improvements which are felt to be desirable) to the version they have picked. That means that you'll be running software whose version number suggests it's vulnerable to certain well-known exploits, but which likely has been patched to avoid those vulnerabilities. Red Hat explain all of this themselves in more detail on their own website.

If you want to be sure that you're not subject to a particular vulnerability, you'll need to find the CVE number of the issue, and check the changelogs. Fortunately, rpm makes this easier than it might otherwise be. Consider as an example CVE-2017-7679, which on the face of it would affect httpd-2.2.15. On my (CentOS6, but I suspect RHEL6 would give an identical response) system, this is patched:

[me@lory ~]$ rpm -q --changelog httpd|grep 7679
- Resolves: #1463207 - CVE-2017-7679 httpd: mod_mime buffer overread

It's amazing how many soi-disant security auditors don't understand the ramifications of RH's approach (which, as noted below, is common to most enterprise-minded distros), some of them even after it's been explained slowly and in short words.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2014-03-20)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0 / CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。